package com.chance.cc.crawler.prod.command.schedule.news.toutiao;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.toutiao.realtime.TTBKRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.toutiao.realtime.TTRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.toutiao.trace.TTBKCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.toutiao.trace.TTBKTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.toutiao.trace.TTCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.toutiao.trace.TTTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-12 16:46:24
 * @email okprog@sina.com
 */
public class TTCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
//        publicCrawlerScheduleJob(TTRealtimeCrawlerSchedulerJob.crawlerScheduler());
//
        publicCrawlerScheduleJob(TTTraceCrawlerSchedulerJob.crawlerScheduler());
//
//        publicCrawlerScheduleJob(TTCommentTraceCrawlerSchedulerJob.crawlerScheduler());

        //bk
//        publicCrawlerScheduleJob(TTBKRealtimeCrawlerSchedulerJob.crawlerScheduler());

        publicCrawlerScheduleJob(TTBKTraceCrawlerSchedulerJob.crawlerScheduler());

//        publicCrawlerScheduleJob(TTBKCommentTraceCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void publicCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_10);
    }

    public static void deleteCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_10);
    }
}
